/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.pro.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 文件夹管理Entity
 * @author fanqinglong
 * @version 2017-05-03
 */
public class Folder extends DataEntity<Folder> {
	
	private static final long serialVersionUID = 1L;
	private Project project;		// 所属项目
	private TaskGroup group;		// 任务组id
	private String type;		// 0 项目文档 1 任务文档
	private String name;		// 文件夹名称
	
	public Folder() {
		super();
	}

	public Folder(String id){
		super(id);
	}

	
	public Project getProject() {
		return project;
	}

	public void setProject(Project project) {
		this.project = project;
	}

	public TaskGroup getGroup() {
		return group;
	}

	public void setGroup(TaskGroup group) {
		this.group = group;
	}

	@Length(min=0, max=2, message="0 项目文档 1 任务文档长度必须介于 0 和 2 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="文件夹名称长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}